<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

<B><A HREF="FMOD.html">FMOD(3)</A></B> 	       FreeBSD Library Functions Manual 	       <B><A HREF="FMOD.html">FMOD(3)</A></B>


</PRE>
<H2>NAME</H2><PRE>
     <B>fmod</B>, <B>fmodf</B> - floating-point remainder functions


</PRE>
<H2>SYNOPSIS</H2><PRE>
     <B>#include</B> <B>&lt;math.h&gt;</B>

     <I>double</I>
     <B>fmod</B>(<I>double</I> <I>x</I>, <I>double</I> <I>y</I>)

     <I>float</I>
     <B>fmodf</B>(<I>float</I> <I>x</I>, <I>float</I> <I>y</I>)


</PRE>
<H2>DESCRIPTION</H2><PRE>
     The <B>fmod</B>() and the <B>fmodf</B>() functions compute the floating-point remainder
     of <I>x</I>/ <I>y</I>.


</PRE>
<H2>RETURN VALUES</H2><PRE>
     The <B>fmod</B>() and the <B>fmodf</B>() functions return the value <I>x-i*y</I>, for some in-
     teger <I>i</I> such that, if <I>y</I> is non-zero, the result has the same sign as <I>x</I>
     and magnitude less than the magnitude of <I>y</I>. If <I>y</I> is zero, whether a do-
     main error occurs or the <B>fmod</B>() and the <B>fmodf</B>() function returns zero is
     implementation-defined.


</PRE>
<H2>SEE ALSO</H2><PRE>
     <B><A HREF="math.html">math(3)</A></B>


</PRE>
<H2>STANDARDS</H2><PRE>
     The <B>fmod</B>() function conforms to ISO 9899: 1990 (``ISO C'').

BSD				  May 2, 1991				     1
</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>
